package com.mingren;

import org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author 曹宏福
 * @version 1.0
 * 主启动类
 */
@MapperScan(basePackages = {("com.mingren.mapper")}) //扫描mapper包并注入
@EnableAsync // 启用异步操作
@EnableAspectJAutoProxy(exposeProxy = true) //启动
@SpringBootApplication(exclude = {ShardingSphereAutoConfiguration.class}) //关闭分库分表
public class MingrenApplication {
    public static void main(String[] args) {
        SpringApplication.run(MingrenApplication.class, args);
    }
}
